const Layout = () => import("@/layout/index.vue");

export default {
  // path: "/automation",
  // name: "Automation",
  // component: Layout,
  // redirect: "/automation/files",
  // meta: {
  //   title: "自动化管理",
  //   icon: "ep:setting",
  //   rank: 10
  // },
  // children: [
  //   {
  path: "/automation",
  name: "AutomationIndex",
  component: () => import("@/views/automation/index.vue"),
  redirect: "/automation/files",
  meta: {
    title: "自动化管理",
    icon: "ep:setting",
    rank: 10
  },
  children: [
    {
      path: "/automation/files",
      name: "AutomationFiles",
      component: () => import("@/views/automation/files/index.vue"),
      meta: {
        title: "服务器文件管理",
        icon: "ep:folder",
        keepAlive: true,
        showParent: true
      }
    },
    {
      path: "/automation/configs",
      name: "AutomationConfigs",
      component: () => import("@/views/automation/configs/index.vue"),
      meta: {
        title: "导入配置管理",
        icon: "ep:tools",
        keepAlive: true,
        showParent: true
      }
    },
    {
      path: "/automation/import",
      name: "AutomationImport",
      component: () => import("@/views/automation/import/index.vue"),
      meta: {
        title: "手动导入",
        icon: "ep:upload",
        keepAlive: true,
        showParent: true
      }
    }
  ]
  //   }
  // ]
} satisfies RouteConfigsTable;
